[Setup]
AppName=Ammunerve Console
AppVerName=Ammunerve Console v0.1
AppPublisher=Ammunerve
AppPublisherURL=http://www.ammunerve.com
AppSupportURL=http://www.ammunerve.com
AppUpdatesURL=http://www.ammunerve.com
DefaultDirName={pf}\Ammunerve\Ammunerve Console
DefaultGroupName=Ammunerve
OutputBaseFilename=Ammunerve-Console-Setup
OutputDir=.

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "console-app.jar"; DestDir: "{app}"; Flags: ignoreversion
Source: "icons/app.ico"; DestDir: "{app}/icons"; Flags: ignoreversion
Source: "lib/*.jar"; DestDir: "{app}/lib"; Flags: ignoreversion
Source: "scripts/startup.scm"; DestDir: "{app}/scripts"; Flags: ignoreversion
Source: "scripting-console\console.jar"; DestDir: "{app}/scripting-console"; Flags: ignoreversion
Source: "scripting-console\tsc.dll"; DestDir: "{app}/scripting-console"; Flags: ignoreversion
Source: "scripting-console\icons\app.ico"; DestDir: "{app}/scripting-console/icons"; Flags: ignoreversion
Source: "scripting-console\lib\*.jar"; DestDir: "{app}/scripting-console/lib"; Flags: ignoreversion
;Source: "scripting-console\scripts\*.scm"; DestDir: "{app}/scripting-console/scripts"; Flags: ignoreversion

[Icons]
Name: "{group}\Ammunerve Console"; Filename: "javaw"; Parameters: "-jar ""{app}\console-app.jar"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\app.ico";
Name: "{group}\Ammunerve Console -- Uninstall"; Filename: "{uninstallexe}"
Name: "{userdesktop}\Scripting Console"; Filename: "javaw"; Parameters: "-jar ""{app}\console-app.jar"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\app.ico"; Tasks: desktopicon

[Run]
Filename: "javaw"; Parameters: "-jar ""{app}\console-app.jar"""; WorkingDir: "{app}"; Description: "{cm:LaunchProgram,Scripting Console}"; Flags: nowait postinstall skipifsilent

